﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="RecipeDetails.aspx.vb" Inherits="LondonItalianRestaurants.RecipeDetails" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
    DataSourceID="SqlDataSource1" Height="50px" Width="125px">
    <Fields>
        <asp:BoundField DataField="RecipeName" HeaderText="RecipeName" 
            SortExpression="RecipeName" />
        <asp:BoundField DataField="CookTime" HeaderText="CookTime" 
            SortExpression="CookTime" />
        <asp:BoundField DataField="Serves" HeaderText="Serves" 
            SortExpression="Serves" />
        <asp:BoundField DataField="Difficulty" HeaderText="Difficulty" 
            SortExpression="Difficulty" />
        <asp:BoundField DataField="Ingredients" HeaderText="Ingredients" 
            SortExpression="Ingredients" />
        <asp:BoundField DataField="CookingSteps" HeaderText="CookingSteps" 
            SortExpression="CookingSteps" />
        <asp:BoundField DataField="AddedBy" HeaderText="AddedBy" 
            SortExpression="AddedBy" />
        <asp:BoundField DataField="MichelinStars" HeaderText="MichelinStars" 
            SortExpression="MichelinStars" />
        <asp:ImageField DataAlternateTextField="RecipePicture" 
            DataImageUrlField="RecipePicture" HeaderText="Image">
        </asp:ImageField>
    </Fields>
</asp:DetailsView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
    ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
    SelectCommand="SELECT [RecipeName], [CookTime], [Serves], [Difficulty], [Ingredients], [CookingSteps], [AddedBy], [MichelinStars], [RecipePicture] FROM [UserRecipe] WHERE ([ID] = ?)">
    <SelectParameters>
        <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
    </SelectParameters>
</asp:SqlDataSource>
</asp:Content>
